#include <iostream>
using namespace std;

#include <log4cpp/Category.hh>
#include <log4cpp/PropertyConfigurator.hh>

int main()
{
    try
    { 
		log4cpp::PropertyConfigurator::configure("./log4cpp.conf");
	} catch(log4cpp::ConfigureFailure& f)
    {
		std::cout << "Configure Problem " << f.what() << std::endl;
        return -1;
    }
    log4cpp::Category& root = log4cpp::Category::getRoot();
    root.info("uu");

    log4cpp::Category& log1 = log4cpp::Category::getInstance("log1");
    log1.info("log1");

    return 0;
}
